package com.lagou.edu.confing;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import redis.clients.jedis.JedisPoolConfig;

import java.util.List;

/**
 * @author 陶肖寅
 * @version V1.0
 * <p>
 * date: 2020/9/4 下午1:57
 * email:fromlx@126.com
 * @Copyright: 2020-2021 城云科技(中国)有限公司
 * </p>
 */
@Component
@ConfigurationProperties(prefix = "spring.redis")
public class RedisProperties {
    private Cluster cluster;
    private Integer   commandTimeout;
    private int expireSeconds;
    private Integer datasource;
    private String password;
    private JedisPoolConfig pool;

    public Cluster getCluster() {
        return cluster;
    }

    public void setCluster(Cluster cluster) {
        this.cluster = cluster;
    }

    public Integer getCommandTimeout() {
        return commandTimeout;
    }

    public void setCommandTimeout(Integer commandTimeout) {
        this.commandTimeout = commandTimeout;
    }

    public Integer getDatasource() {
        return datasource;
    }

    public void setDatasource(Integer datasource) {
        this.datasource = datasource;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getExpireSeconds() {
        return expireSeconds;
    }

    public void setExpireSeconds(int expireSeconds) {
        this.expireSeconds = expireSeconds;
    }

    public JedisPoolConfig getPool() {
        return pool;
    }

    public void setPool(JedisPoolConfig pool) {
        this.pool = pool;
    }
}
